package ui.actions;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import ui.Main;
import util.Util;

/**
 * Action to select the StoneTool.
 * @author TKington
 *
 */
public class StoneAction extends AbstractAction {
	/**
	 * Creates a StoneAction.
	 */
	public StoneAction() {
		putValue(NAME, "Add/Remove Stones");
		putValue(SHORT_DESCRIPTION, "Add/Remove Stones");
		//putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_N, ActionEvent.CTRL_MASK));
		putValue(SMALL_ICON, Util.getIcon("BlackStone20.png")); //$NON-NLS-1$
	}
	
	public void actionPerformed(ActionEvent evt) {
		Main.frame.setStoneTool();
	}
}
